package com.antoco.operation.bigscreen.model.dto;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value="ThisDaySuiziDTO")
public class ThisDaySuiziDTO {

    @NotNull(message = "今日CH2浓度不能为空")
    @Min(value = 0, message = "今日CH2浓度必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "今日CH2浓度必须是整数")
    @ApiModelProperty(value = "今日CH2浓度", example="10")
    private String todayCh2;

    @NotNull(message = "今日H2S浓度不能为空")
    @Min(value = 0, message = "今日H2S浓度必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "今日H2S浓度必须是整数")
    @ApiModelProperty(value = "今日H2S浓度", example="10")
    private String todayH2s;

    @NotNull(message = "今日CO浓度不能为空")
    @Min(value = 0, message = "今日CO浓度必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "今日CO浓度必须是整数")
    @ApiModelProperty(value = "今日CO浓度", example="10")
    private String todayCo;

    @NotNull(message = "今日PH值不能为空")
    @Min(value = 0, message = "今日PH值必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "今日PH值必须是整数")
    @ApiModelProperty(value = "今日PH值", example="10")
    private String todayPh;

    @NotNull(message = "今日浊度不能为空")
    @Min(value = 0, message = "今日浊度必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "今日浊度必须是整数")
    @ApiModelProperty(value = "今日浊度", example="10")
    private String todayZd;

    @NotNull(message = "今日溶氧率不能为空")
    @Min(value = 0, message = "今日溶氧率必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "今日溶氧率必须是整数")
    @ApiModelProperty(value = "今日溶氧率", example="10")
    private String todayRyl;

    @NotNull(message = "昨日CH2浓度不能为空")
    @Min(value = 0, message = "昨日CH2浓度必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "昨日CH2浓度必须是整数")
    @ApiModelProperty(value = "昨日CH2浓度", example="10")
    private String prevDayCh2;

    @NotNull(message = "昨日H2S浓度不能为空")
    @Min(value = 0, message = "昨日H2S浓度必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "昨日H2S浓度必须是整数")
    @ApiModelProperty(value = "昨日H2S浓度", example="10")
    private String prevDayH2s;

    @NotNull(message = "昨日CO浓度不能为空")
    @Min(value = 0, message = "昨日CO浓度必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "昨日CO浓度必须是整数")
    @ApiModelProperty(value = "昨日CO浓度", example="10")
    private String prevDayCo;

    @NotNull(message = "昨日PH值不能为空")
    @Min(value = 0, message = "昨日PH值必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "昨日PH值必须是整数")
    @ApiModelProperty(value = "昨日PH值", example="10")
    private String prevDayPh;

    @NotNull(message = "昨日浊度不能为空")
    @Min(value = 0, message = "昨日浊度必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "昨日浊度必须是整数")
    @ApiModelProperty(value = "昨日浊度", example="10")
    private String prevDayZd;

    @NotNull(message = "昨日溶氧率不能为空")
    @Min(value = 0, message = "昨日溶氧率必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "昨日溶氧率必须是整数")
    @ApiModelProperty(value = "昨日溶氧率", example="10")
    private String prevDayRyl;

    @NotNull(message = "CH2浓度同比不能为空")
    @Pattern(regexp = "[1-2]", message = "CH2浓度同比必须是1或2")
    @ApiModelProperty(value = "CH2浓度同比", example="1")
    private String ch2TonBi;

    @NotNull(message = "CH2浓度同比不能为空")
    @Pattern(regexp = "[1-2]", message = "CH2浓度同比必须是1或2")
    @ApiModelProperty(value = "H2S浓度同比", example="1")
    private String h2sTonBi;

    @NotNull(message = "CO浓度同比不能为空")
    @Pattern(regexp = "[1-2]", message = "CO浓度同比必须是1或2")
    @ApiModelProperty(value = "CO浓度同比", example="1")
    private String coTonBi;

    @NotNull(message = "PH值同比不能为空")
    @Pattern(regexp = "[1-2]", message = "PH值同比必须是1或2")
    @ApiModelProperty(value = "PH值同比", example="1")
    private String phTonBi;

    @NotNull(message = "浊度同比不能为空")
    @Pattern(regexp = "[1-2]", message = "浊度同比必须是1或2")
    @ApiModelProperty(value = "浊度同比", example="1")
    private String zdTonBi;

    @NotNull(message = "溶氧率同比不能为空")
    @Pattern(regexp = "[1-2]", message = "溶氧率同比必须是1或2")
    @ApiModelProperty(value = "溶氧率同比", example="1")
    private String rylTonBi;
}